<form action="">
  输入框 <input type="text" /><br />
  <button type="button" onclick="submitForm()">提交按钮</button><br />
  <button type="submit">提交按钮</button><br />
  <button type="reset">重置按钮</button>
</form>
<script src=""></script>
<script>
  function submitForm() {
    data.push({
      ID: "zzzz",
      BoatNo: "asdadadsa22",
      BoatName: "华远001",
      Status: "在气田",
      materialname: "食品",
      toplace: "HZ876",
      eta: "100",
      draft: "29",
      dieseloil: "218",
      water: "233",
      megbalance: "877",
    });
    window.location.reload();
  }
</script>
